package com.ychs.lawyer.service.impl;

import com.ychs.lawyer.bean.Case;
import com.ychs.lawyer.mapper.CaseMapper;
import com.ychs.lawyer.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: clh
 * @Date: 2024/08/01/10:50
 * @Description:
 */
@Service
public class CaseServiceImpl implements CaseService {

    @Autowired
    private CaseMapper caseMapper;
    @Override
    public List<Case> getCaseWhereStatus1() {
        return caseMapper.getCaseWhereStatus1();
    }

    @Override
    public List<Case> getCaseWhereStatus2() {
         return caseMapper.getCaseWhereStatus2();
    }

    @Override
    public List<Case> getLawyers() {
        return caseMapper.getLawyers();
    }

    @Override
    public List<Case> selectCaseByConditon(Case cases) {
        return caseMapper.selectCaseByConditon(cases);
    }

    @Override
    public int addCases(Case cases) {
         return caseMapper.addCases(cases);
    }
}
